package com.library.domain;


import com.library.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 公众号签到表 mb_sign_record
 *
 * @author null
 * @date 2020-04-23
 * @blame Android Team
 */
public class MbSignRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private Integer id;
    /**
     * 用户ID
     */
    private Long membersId;
    /**
     * 签到时间
     */
    private Date signInTime;
    /**
     * 累计签到次数
     */
    private Integer signNum;
    /**
     * 本次签到获取积分
     */
    private Integer signIntegral;
    /**
     * 上次签到时间
     */
    private Date lastSignTime;
    /**
     * 连续签到次数
     */
    private Integer uninterruptedlySignNum;
    /**
     * 操作时间
     */
    private Date createTime;
    /**
     * 备注
     */
    private String remark;
    /**
     * 扩展字段
     */
    private String ext;
    /**
     * 会员实体
     */
    private BoMembers members;

    public BoMembers getMembers() {
        return members;
    }

    public void setMembers(BoMembers members) {
        this.members = members;
    }

    public Integer getSignIntegral() {
        return signIntegral;
    }

    public void setSignIntegral(Integer signIntegral) {
        this.signIntegral = signIntegral;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public Long getMembersId() {
        return membersId;
    }

    public void setMembersId(Long membersId) {
        this.membersId = membersId;
    }

    public void setSignInTime(Date signInTime) {
        this.signInTime = signInTime;
    }

    public Date getSignInTime() {
        return signInTime;
    }

    public void setSignNum(Integer signNum) {
        this.signNum = signNum;
    }

    public Integer getSignNum() {
        return signNum;
    }

    public void setLastSignTime(Date lastSignTime) {
        this.lastSignTime = lastSignTime;
    }

    public Date getLastSignTime() {
        return lastSignTime;
    }

    public void setUninterruptedlySignNum(Integer uninterruptedlySignNum) {
        this.uninterruptedlySignNum = uninterruptedlySignNum;
    }

    public Integer getUninterruptedlySignNum() {
        return uninterruptedlySignNum;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    public void setExt(String ext) {
        this.ext = ext;
    }

    public String getExt() {
        return ext;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("membersId", getMembersId())
                .append("signInTime", getSignInTime())
                .append("signNum", getSignNum())
                .append("lastSignTime", getLastSignTime())
                .append("uninterruptedlySignNum", getUninterruptedlySignNum())
                .append("createTime", getCreateTime())
                .append("remark", getRemark())
                .append("ext", getExt())
                .toString();
    }
}
